//
//  NXTabBarController.h
//  NXMainFrameObject
//
//  Created by 宋钢强 on 2018/4/16.
//  Copyright © 2018年 NiuTan. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NXTabBar.h"

typedef NS_ENUM(NSInteger, TabBarStyle) {
    TabBarStyleDefault, // 默认的系统
    TabBarStyleCenterIcon // 中间按钮的tabbar
};

@class NXTabBarController;

@protocol NXTabBarControllerDelegate <UITabBarDelegate>
@optional
- (void)tabBarDidClickNXTabBar:(NXTabBarController *)tabBarVC;
@end


@interface NXTabBarController : UITabBarController

/**
 tabbar的样式
 */
@property (nonatomic, assign) TabBarStyle style;
@property (nonatomic, weak) id<NXTabBarControllerDelegate> tabBarDelegate;

/** 标题的默认颜色 */
@property (nonatomic, strong) UIColor *norTitleColor;
/** 标题的选中颜色 */
@property (nonatomic, strong) UIColor *selTitleColor;
/** 标题文字大小 (默认 12.f) */
@property (nonatomic, assign) CGFloat titleFont;

-(void)addChildViewController:(UIViewController *)childVc  title:(NSString *)title image:(NSString *)image selImage:(NSString *)selImage ;

@end
